<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.io.File</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.io.File");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791">tango.io.File</a></h1>
                
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Version:</b><br>
Mar 2005: Initial release<br><br>
<b>Version:</b><br>
Feb 2007: No longer a proxy subclass<br><br>
<b>author:</b><br>Kris<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>class <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L37">File</a></span>
<script>explorer.outline.addDecl('File');</script>;</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">A wrapper atop of FileConduit to expose a simpler API. This one
        returns the entire file content as a void[], and sets the content
        to reflect a given void[].</font><br><br>
<font color="black">Method read&#40;&#41; returns the current content of the file, whilst write&#40;&#41;
        sets the file content, and file length, to the provided array. Method
        append&#40;&#41; adds content to the tail of the file.<br><br>        Methods to inspect the file system, check the status of a file or
        directory and other facilities are made available via the associated
        path &#40;exposed via the path&#40;&#41; method&#41;
        
</font><br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li><span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L47">this</a></span>
<script>explorer.outline.addDecl('this');</script>(char[] <span class="funcparam">path</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Construct a File from a text string</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li><span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L58">this</a></span>
<script>explorer.outline.addDecl('this');</script>(PathView <span class="funcparam">path</span>); [deprecated]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Construct a File from the provided FilePath</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>File <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L71">opCall</a></span>
<script>explorer.outline.addDecl('opCall');</script>(char[] <span class="funcparam">path</span>); [static]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Call-site shortcut to create a File instance. This 
                enables the same syntax as struct usage, so may expose
                a migration path</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>PathView <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L82">path</a></span>
<script>explorer.outline.addDecl('path');</script>(); [final, deprecated]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the path for this file instance</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L93">read</a></span>
<script>explorer.outline.addDecl('read');</script>(); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the content of the file.</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>File <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L115">write</a></span>
<script>explorer.outline.addDecl('write');</script>(void[] <span class="funcparam">content</span>); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Set the file content and length to reflect the given array.</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>File <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L126">append</a></span>
<script>explorer.outline.addDecl('append');</script>(void[] <span class="funcparam">content</span>); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Append content to the file.</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>File <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/io/File.d?rev=3791#L137">write</a></span>
<script>explorer.outline.addDecl('write');</script>(void[] <span class="funcparam">content</span>, FileConduit.Style <span class="funcparam">style</span>); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Set the file content and length to reflect the given array.</font><br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (c) 2004 Kris Bell. All rights reserved :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sat Aug  2 16:08:33 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>